Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development
Checking session types and session parameters
Each Progress Dynamics session is started up based on a session type. The session type is the one parameter normally passed in to the startup command using the
ICFSESSTYPEparameter of theicfstartupProgress startup option, as shown:
![]()
In this example, the
ICFSESSTYPEused at startup, which is really alogicalsession type that can have a number of properties of its own, isICFDEV. Look at the session types to see that the physical session type forICFDEVisGUI, as shown:
![]()
Use the
getPhysicalSessionTypefunction to query the physical session type, as shown:
These are the possible physical types:
APP— If theSESSION:CLIENT-TYPEisAPPSERVER, it is an AppServer session.BTC— If theSESSION:CLIENT-TYPEis4GLCLIENTandSESSION:BATCH-MODEisyes, it is a batch client.CUI— If theSESSION:CLIENT-TYPEis4GLCLIENTand theSESSION:DISPLAY-TYPEis “TTY”, it is a character client.GUI— If theSESSION:CLIENT-TYPEis4GLCLIENTand neither of the previous two conditions were met, it is a GUI client.WBC— If theSESSION:CLIENT-TYPEisWEBCLIENT, it is a WebClient session.WBS— If theSESSION:CLIENT-TYPEisWEBSPEED, it is a WebSpeed Transaction Agent.- If none of the previous conditions have been met, the physical session type is left blank, indicating that the physical session type is unrecognized.
You can also access the values of any of the session properties, or even define new properties of your own, using the
getSessionParamandsetSessionParamfunctions, as shown:
Here is an example of using these. If you set a parameter that was not defined before, it is defined for you and you can retrieve its value later, as shown in the following example:
Running this code results in the following Message window:
![]()
For more information about other API calls, see the Configuration File Manager section in OpenEdge Development: Progress Dynamics Managers API Reference .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |